package com.mymvpproject.base;

public class Data {
    private String name;
    private int age;
    private double height;

    private Data(Builder builder) {
        name = builder.name;
        age = builder.age;
        height = builder.height;
    }


    public static final class Builder {
        private String name;
        private int age;
        private double height;

        public Builder() {
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder age(int val) {
            age = val;
            return this;
        }

        public Builder height(double val) {
            height = val;
            return this;
        }

        public Data build() {
            return new Data(this);
        }
    }
}
